--[[
8种基本类型
nil:nil
boolean:true、false
number:数字
string:单引号、双引号
function
userdata
thread
table
只有nil（null NULL）和false表示假 0和空串都表示真
]]

--整数
age=1
print("age",age,type(age))

--双引号
name="lisi"
print("name",name,type(name))

--单引号
name='lisi'
print("name",name,type(name))

--nil
name=nil
name1=null
name2=NULL
print("name",name,type(name))
print("name1",name1,type(name1))
print("name2",name2,type(name2))

--boolean
isOk=true
print("isOk",isOk,type(isOk))

--多重赋值
age,name=10,"lisi"
print("age,name",age,name)

age,name=name,age
print("age,name",age,name)


--只有nil和false表示假
age=0
if(age) then
    print(age,"真")
else
    print(age,"假")
end
age=""
if(age) then
    print(age,"真")
else
    print(age,"假")
end
age=nil
if(age) then
    print(age,"真")
else
    print(age,"假")
end
age=false
if(age) then
    print(age,"真")
else
    print(age,"假")
end



